package cn.edu.ncut.cs.springboot.petmanagementsystem.mapper;

import cn.edu.ncut.cs.springboot.petmanagementsystem.pojo.PetCareRecord;
import cn.edu.ncut.cs.springboot.petmanagementsystem.vo.PetCareRecordV0;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PetCareRecordMapper extends BaseMapper<PetCareRecord> {
    IPage<PetCareRecordV0> selectCareRecordPage(Page<PetCareRecordV0> page, @Param("petId") Long petId);
    
    PetCareRecordV0 selectCareRecordById(@Param("id") Long id);
}
